package com.library.mapper;


import com.library.domain.Book;
import com.library.domain.BookFull;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BookMapper {
    List<BookFull> selectAll();

    List<BookFull> selectByIsbn(String isbn);

    List<BookFull> selectByName(String bookName);

    List<BookFull> selectByAuthor(String authorName);

    List<BookFull> selectByPublisher(String pubName);

    List<BookFull> selectKey(String key);

    Integer delByIsbn(String isbn);

    Integer add(Book book);

    Integer change(Book book);

}
